var server_sanity=true;

<%  if !@token_sanity %>
	var server_sanity=false;
	alert("<%=@message%>:"+"<%=@token%>");
<% else %>

info_html="";
// info_html+="<p style=\"font-size:20px;\">Following projects have been added:</p>";
<% @projects.each_with_index do |p,index| %>
	info_html+="<li style=\"border-bottom-width:1px;\">";
	info_html+="<div id='pcandidate_index_<%=index%>' class=\"pcandidate\" pid=\"<%=p.id%>\">"
	// info_html+="<span class=\"project\" > <i class=\"icon-check icon-2x\" style=\"color:#2ecc71;\"></i></span><span class=\"\"><%= p.name %>&nbsp&nbsp</span>";
	info_html+="<span class=\"project\"><%= p.name %>&nbsp&nbsp</span>";
	info_html+="</div>"
	info_html+="</li>";
<% end %> 
info_html+="</br></br>"



alert("load success");
$('#step2_message').html("Now you can choose the projects that you'd like it to be involved in Harvest");
var ld = document.getElementById('loading');
ld.style.display="none";
var sh = document.getElementById('info_id');
sh.style.display="block";

$('#info_id').html(info_html);
<%  end %>






